<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<?php include("../../MerchandiseBay/conn.php"); ?>
<?
$firstname=trim($_REQUEST['firstname']);
$lastname=trim($_REQUEST['lastname']);
$username=trim($_REQUEST['username']);
$password=trim($_REQUEST['password']);
$telno=trim($_REQUEST['telno']);
$email=$_REQUEST['email'];
$location=$_REQUEST['location'];
$oldusername=$_REQUEST['oldusername'];

$sql="update users set firstname='$firstname', lastname='$lastname', username='$username', password='$password', telno='$telno', email='$email', location='$location' where username='$oldusername'";
$qry = mysql_query($sql,$conn);

?>

<script language=javascript>
window.alert("Update successful");
window.location.assign("profileupdate.php");
</script>
</head>

<body>

</body>

</html>
